package cn.gene.timeyan.pojo.article.model;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author LWG
 * @since 2022-07-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("arms_like")
public class Like implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "article_like_id", type = IdType.AUTO)
    private Long articleLikeId;

    /**
     * 鐐硅禐浜篒D
     */
    private Long likeId;

    /**
     * 琚?禐浜篒D
     */
    private Long byUserId;

    /**
     * 甯栧瓙ID
     */
    private Long articleId;

    /**
     * 璇勮?id
     */
    private Long commentId;

    /**
     * 鍥炲?id
     */
    private Long replyId;

    /**
     * 鐐硅禐绫诲瀷  (0甯栧瓙锛?璇勮?锛?鍥炲?)
     */
    private String likeType;

    /**
     * 鐐硅禐鐘舵?锛?鏈?禐锛?宸茶禐锛
     */
    private String likeState;

    /**
     * 鍒涘缓鏃堕棿
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 淇?敼鏃堕棿
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


}
